package com.oauth.components.client.ui.windows;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

public class GoogleNewsWindow extends Composite {

	private static GoogleNewsWindowUiBinder uiBinder = GWT
			.create(GoogleNewsWindowUiBinder.class);

	interface GoogleNewsWindowUiBinder extends
			UiBinder<Widget, GoogleNewsWindow> {
	}

	@UiField
	HTML html;
	
	public GoogleNewsWindow() {
		initWidget(uiBinder.createAndBindUi(this));
		System.out.println("News HTML:"+getNewsHTML());
		html.setHTML(getNewsHTML());
	}

	private String getNewsHTML(){
		return "<iframe frameborder=\"0\" width=\"728\" height=\"90\" marginwidth=\"0\" marginheight=\"0\""+
    		" src=\"http://www.google.com/uds/modules/elements/newsshow/iframe.html?topic=h&rsz=small&format=728x90\">"+
		"</iframe>";

	}
}
